<?php
session_start();
ob_start();

define('IN_SYS', TRUE);
define('IS_DEBUG', FALSE);
require_once 'define.php';
require_once SYS_CONFIG.'config.inc.php';

try {
	$sys = new SYS();
	$sys->dispatch();
} catch (SysExceptionModel $ex) {
	$ex->printError();
} catch (SysExceptionView $ex) {
	$ex->printError();
} catch (SysExceptionControl $ex) {
	$ex->printError();
}